#########################################################################################################
#                                  IP Architechs Lab Examples                                           #
#########################################################################################################
# Author: Rick Frey                                                                                     #
# email: consulting@iparchitechs.com                                                                    #
# www.iparchitechs.com  1-855-MikroTik                                                                  #
#########################################################################################################
#########################################################################################################
#                                      CPE Final Config                                                 #            
#########################################################################################################
#########################################################################################################
#                                     Applies to ROS 6.7+                                               #            
#########################################################################################################

/interface bridge
add arp=enabled name=Public_IP_Bridge protocol-mode=rstp

/interface eoip
add local-address=20.20.20.2 name=Customer_1_EOIP remote-address=10.10.10.1 tunnel-id=1

/interface bridge port
add bridge=Public_IP_Bridge interface=ether2
add bridge=Public_IP_Bridge interface=Customer_1_EOIP

/ip address
add address=20.20.20.2/24 interface=ether1 network=20.20.20.0

/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1

/ip route
add distance=1 gateway=20.20.20.1

/system identity
set name=CPE